package com.hb.trade.api.routine.config;

import org.fzzn.core.cache.inmemory.InMemoryService;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * 自定义spring bean
 *
 * @author zhaojk
 */
@Component
public class TradeBeanConfig {

    /**
     * 基于内存的缓存处理器
     *
     * @return
     */
    @Bean
    public InMemoryService memoryService() {
        return new InMemoryService();
    }
}
